package day6work.animalclasss;

import day6work.interfaceclass.Swim;

public class Dog extends Animal implements Swim {


     public Dog(int age, String name, String color) {
        super(age, name, color);
    }
    public void lookhome(){}

   public void eat(){
        System.out.println(age+color+name+"爱吃骨头");
    }

    @Override
    public void Swim() {
        System.out.println(name+"狗爬式很厉害");

    }
}
